import type { App } from 'vue'
import Alert from './components/Alert/'
import Button from './components/Button'
import Collapse from './components/Collapse/'
import CollapseItem from './components/CollapseItem/'
import Dropdown from './components/Dropdown/'
import Icon from './components/Icon/'
import Message from './components/Message/'
import Tooltip from './components/Tooltip/'

import './styles/index.scss'

const components = [Alert, Button, Collapse, CollapseItem, Dropdown, Icon, Message, Tooltip]

const install = (app: App) => {
  components.map(item => {
    app.component(item.name as string, item)
  })
}

export default {
  version: '1.0.0',
  install,
  Alert,
  Button,
  Collapse,
  CollapseItem,
  Dropdown,
  Icon,
  Message,
  Tooltip
}
